package com.aps.common.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.DayOfWeek;
import java.time.LocalTime;
import java.util.List;

/**
 * @Author nbZhuozh
 * @Date 2025-10-15  11:55
 **/
@Data
@AllArgsConstructor
public class ApsDayOfWeek {

    //星期几  .getValue() 返回 1-7  星期一 ~ 星期日
    DayOfWeek dayOfWeek;
    //正常时段
    List<ApsInterval> apsIntervalNormal;
    //加班时段
    ApsInterval apsIntervalOver;

    public static ApsDayOfWeek  of(int day , List<ApsInterval> normal , ApsInterval over) {
        return new ApsDayOfWeek(DayOfWeek.of(day), normal, over);
    }
}
